﻿namespace WriteLog
{
    /// <summary>
    /// 描述存储日志项的接口
    /// </summary>
    public interface ISaveLog
    {
        /// <summary>
        /// 存储日志项
        /// </summary>
        /// <param name="log">日志项内容</param>
        void Save(BaseLogMessage log);
        /// <summary>
        /// 存储文本信息
        /// 建议：
        /// 将文本信息封装为BaseLogMessage后存储
        /// </summary>
        /// <param name="logMessage">文本内容</param>
        void Save(string logMessage);
    }
}
